
{% extends "EnglishVocabularyBundle:Default:index.html.twig" %}

{% set page_title = 'Vocabulary list' %}

{% block content %}
<table class="records_list">
    <thead>
        <tr>
            <th>Id</th>
            <th>French</th>
            <th>English</th>
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>
    {% for entity in entities %}
        <tr>
            <td><a href="{{ path('vocabulary_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
            <td>{{ entity.French }}</td>
            <td>{{ entity.English }}</td>
            <td>
                <a href="{{ path('vocabulary_show', { 'id': entity.id }) }}">
                    <img src="{{ asset('bundles/englishvocabulary/images/page_go.png') }}" alt="Show"/>
                </a>
                <a href="{{ path('vocabulary_edit', { 'id': entity.id }) }}">
                    <img src="{{ asset('bundles/englishvocabulary/images/page_edit.png') }}" alt="Edit"/>
                </a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

<ul>
    <li>
        <a href="{{ path('vocabulary_new') }}">
            Create a new entry
        </a>
    </li>
</ul>

{% endblock %}
